package com.luoran.bartalks.dao;

import java.util.List;

import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;

import com.luoran.bartalks.entity.biz.BtPlanEntry;

public interface IBtPlanEntryDao extends BaseMapper<BtPlanEntry> {

	// 根据计划id查询途径点
	List<BtPlanEntry> getPlanEntryByPlanId(@Param("planId") String planId, @Param("companyId") String companyId);

	// 根据计划id查询途经点顺序用于工作台展示
	List<BtPlanEntry> getPlanEntryByPlanIdOfWorkbench(@Param("planId") String planId);

	// 根据计划id查询途经点顺序用于报表展示
	List<BtPlanEntry> getPlanEntryByPlanIdOfReport(@Param("planId") String planId);

	// 根据计划id删除计划途径点.
	void deletePlanEntryByPlanId(@Param("planId") String planId, @Param("companyId") String companyId);

	// 根据planid.sign获取PlanEntry
	BtPlanEntry getPlanEntryByPlanIdAndSign(@Param("planId") String planId, @Param("companyId") String companyId,
			@Param("sign") int sign);

	// 根据planId,addressid获取PlanEntry
	BtPlanEntry getPlanEntryByPlanIdAndAddresId(@Param("planId") String planId, @Param("addressId") String addressId,
			@Param("companyId") String companyId);

	// 根据计划id查询异常信息
	List<BtPlanEntry> getPlanEntryException(@Param("planId") String planId);
	
	// 根据planIdList获取PlanEntrylist
	List<BtPlanEntry> getByPlanIdOfAPP(@Param("ids")List<String> Ids,@Param("companyId")String companyId);
}
